package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.StockCheck;
import com.weixing.mall.provider.model.query.StockCheckDetailsQuery;
import com.weixing.mall.provider.model.query.StockCheckQuery;
import com.weixing.mall.provider.model.vo.StockCheckDetailsVo;
import com.weixing.mall.provider.model.vo.StockCheckSpecificDetailsVo;
import com.weixing.mall.provider.model.vo.StockCheckVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 仓库模块-盘点单 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface StockCheckMapper extends BaseMapper<StockCheck> {

    IPage<StockCheckVo> selectOfPage(@Param("pg") Page page,@Param("qs") StockCheckQuery stockCheckQuery);

    IPage<StockCheckSpecificDetailsVo> selectSpecificDetails(@Param("pg") Page page,@Param("checkId")Long checkId,@Param("stockPerson")Long stockPerson);

    IPage<StockCheckDetailsVo> selectDetails(@Param("pg") Page page,@Param("qs") StockCheckDetailsQuery stockCheckDetailsQuery);

    Double selectTotal(@Param("qs") StockCheckDetailsQuery stockCheckDetailsQuery);
}
